#ifndef __BSP_UART_H
#define __BSP_UART_H

#include "stm32f4xx.h"
#include "stm32f4xx_usart.h"
#include "stdio.h"

#define DUBG_UART 	USART3


void bsp_uart_init(USART_TypeDef * UARTx,uint8_t AFstate,uint32_t baudrate);
void bsp_uart_nvic_init(USART_TypeDef * UARTx,uint16_t USART_IT, uint8_t priority);



void tts_printf(USART_TypeDef * UARTx,char *fmt, ...);




#endif
